<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<%--
  Created by IntelliJ IDEA.
  User: xh
  Date: 2020/2/4
  Time: 15:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>技术博客 - 技术栈 -Java程序员成长平台</title>
    <meta name="keywords" content="">
    <meta name="description" content>
    <link rel="stylesheet" href="${APP_PATH}/vendor/layui-v2.4.5/layui/css/layui.css">
    <link rel="stylesheet" href="${APP_PATH}/css/common.css">
    <link rel="stylesheet" href="${APP_PATH}/css/header.css">
    <link rel="stylesheet" href="${APP_PATH}/css/footer.css">
    <link rel="stylesheet" href="${APP_PATH}/css/blog.css">
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<jsp:include page="head.jsp"></jsp:include>

<div class="layui-main g-main">
    <div class="layui-row layui-col-space30">
        <div class="layui-col-xs9">
            <!-- 博客列表头部信息 -->
            <div class="layui-row layui-col-space10">
                <div class="l-blogs">
                    <div class="l-blogs-page-header">
                        <span class="item title">推荐文章</span>
                    </div>
                </div>
            </div>
            <div class="layui-row layui-col-space20">
                <div class="layui-col-xs3">
                    <div class="l-blogs-card">
                        <div class="image">
                            <a href="index.html">
                                <img src="img/recommend-blog.jpg">
                            </a>
                        </div>
                        <div class="content">
                            <a class="header" href=""  title="vue开源项目">
                                vue开源项目 vue开源项目 vue开源项目 vue开源项目 vue开源项目 vue开源项目
                            </a>
                            <div class="meta">
                                <a href="">
                                    <div class="author-img">
                                        <img src="https://oscimg.oschina.net/oscnet/up-4bf56b3e93f986bd518695b243802ebb.jpeg!/both/50x50?t=1478404076000" alt="xiaoge2016" title="xiaoge2016">
                                    </div>
                                </a>
                                <a href=""><span><i class="layui-icon layui-icon-read">&nbsp;10阅</i></span></a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs3">
                    <div class="l-blogs-card">
                        <div class="image">
                            <a href="">
                                <img src="img/recommend-blog.jpg">
                            </a>
                        </div>
                        <div class="content">
                            <a class="header" href=""  title="vue开源项目">
                                vue开源项目
                            </a>
                            <div class="meta">
                                <a href="">
                                    <div class="author-img">
                                        <img src="https://static.oschina.net/uploads/space/2018/0606/190209_6MWa_2491310.png" alt="xiaoge2016" title="xiaoge2016">
                                    </div>
                                </a>
                                <a href=""><span><i class="layui-icon layui-icon-read">&nbsp;10阅</i></span></a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs3">
                    <div class="l-blogs-card">
                        <div class="image">
                            <a href="">
                                <img src="img/recommend-blog.jpg">
                            </a>
                        </div>
                        <div class="content">
                            <a class="header" href=""  title="vue开源项目">
                                vue开源项目 vue开源项目 vue开源项目 vue开源项目 vue开源项目 vue开源项目
                            </a>
                            <div class="meta">
                                <a href="">
                                    <div class="author-img">
                                        <img src="https://oscimg.oschina.net/oscnet/up-4bf56b3e93f986bd518695b243802ebb.jpeg!/both/50x50?t=1478404076000" alt="xiaoge2016" title="xiaoge2016">
                                    </div>
                                </a>
                                <a href=""><span><i class="layui-icon layui-icon-read">&nbsp;10阅</i></span></a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs3">
                    <div class="l-blogs-card">
                        <div class="image">
                            <a href="">
                                <img src="img/recommend-blog.jpg">
                            </a>
                        </div>
                        <div class="content">
                            <a class="header" href=""  title="vue开源项目">
                                vue开源项目 vue开源项目 vue开源项目 vue开源项目 vue开源项目 vue开源项目
                            </a>
                            <div class="meta">
                                <a href="">
                                    <div class="author-img">
                                        <img src="https://oscimg.oschina.net/oscnet/up-4bf56b3e93f986bd518695b243802ebb.jpeg!/both/50x50?t=1478404076000" alt="xiaoge2016" title="xiaoge2016">
                                    </div>
                                </a>
                                <a href=""><span><i class="layui-icon layui-icon-read">&nbsp;10阅</i></span></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-row layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">最新文章</li>
                </ul>
                <div class="l-blogs-list-header">
                    <a href="" class="layui-btn layui-btn-sm add-blog">
                        <i class="layui-icon layui-icon-edit c-mr3" href="${APP_PATH}/blog/toAdd"></i>我要写文章
                    </a>
                </div>

                <%--文章--%>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="l-blogs-list-body">
                            <%--单个--%>
                            <c:forEach items="${requestScope.blogs}" var="blog">
                            <div class="layui-row">
                                <div class="layui-col-xs12 l-blog">
                                    <div class="title layui-elip">
                                        <a href="${APP_PATH}/blog/toBlog-detail?id=${blog.id}" title="${blog.title}">
                                       <c:if test="${blog.id==1}">
                                           <span class="layui-badge layui-bg-cyan c-mr3">顶</span>
                                       </c:if>
                                                ${blog.title}
                                        </a>
                                    </div>
                                    <!-- 需要通过JS处理多行溢出内容,显示最多为2排-->
                                    <div class="content imitate_ellipsis">${blog.main}</div>
                                    <div class="footer">
                                        <a href="" class="label">
                                            <span class="layui-badge layui-bg-gray">${blog.blogType}</span>
                                        </a>
                                        <a href="" class="label">
                                            <span class="layui-badge layui-bg-gray">${blog.systemType}</span>
                                        </a>
                                        <a href="" class="label">${blog.userId}</a>
                                        <span class="label time">${blog.sendTime}</span>

                                    </div>
                                </div>
                            </div>
                                <%--单个--%>
                            </c:forEach>

                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="layui-col-xs3" >
            <div class="l-blog-hot-tag">
                <div class="l-blog-hot-tag-header">
                    <span class="title">系统分类</span>
                    <i class="layui-icon layui-icon-about" title="系统分类统计每小时更新"></i>
                </div>
                <div class="l-blog-hot-tag-body">
                    <a href="">
                        <span class="layui-badge layui-bg-cyan">Java核心技术(12334)</span>
                    </a>
                    <a href="">
                        <span class="layui-badge layui-bg-gray">JSP/Servlet(1233)</span>
                    </a>
                    <a href="">
                        <span class="layui-badge layui-bg-gray">数据库(123)</span>
                    </a>
                    <a href="">
                        <span class="layui-badge layui-bg-gray">框架开发(121)</span>
                    </a>
                    <a href="">
                        <span class="layui-badge layui-bg-gray">分布式架构(12)</span>
                    </a>
                    <a href="">
                        <span class="layui-badge layui-bg-gray">框架开发(11)</span>
                    </a>
                </div>
            </div>
            <div class="l-welcomed-blogger">
                <div class="l-welcomed-blogger-header">
                    <span class="title">本周最活跃的小伙伴</span>
                    <i class="layui-icon layui-icon-about" title="活跃统计每小时更新"></i>
                </div>
                <div class="l-welcomed-blogger-body">
                    <div class="layui-row l-welcomed-blogger-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 username">
                            <a href="">小小编辑1</a>
                            <div class="details">
                                <div class="d-item"><span>9999+</span> 篇文章</div>
                                <div class="d-item"><span>9999+</span> 次访问</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-welcomed-blogger-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 username">
                            <a href="">小小编辑1</a>
                            <div class="details">
                                <div class="d-item"><span>9999+</span> 篇文章</div>
                                <div class="d-item"><span>9999+</span> 次访问</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-welcomed-blogger-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 username">
                            <a href="">小小编辑1</a>
                            <div class="details">
                                <div class="d-item"><span>9999+</span> 篇文章</div>
                                <div class="d-item"><span>9999+</span> 次访问</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-welcomed-blogger-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 username">
                            <a href="">小小编辑1</a>
                            <div class="details">
                                <div class="d-item"><span>9999+</span> 篇文章</div>
                                <div class="d-item"><span>9999+</span> 次访问</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-welcomed-blogger-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 username">
                            <a href="">小小编辑1</a>
                            <div class="details">
                                <div class="d-item"><span>9999+</span> 篇文章</div>
                                <div class="d-item"><span>9999+</span> 次访问</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-welcomed-blogger-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 username">
                            <a href="">小小编辑1</a>
                            <div class="details">
                                <div class="d-item"><span>9999+</span> 篇文章</div>
                                <div class="d-item"><span>9999+</span> 次访问</div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-welcomed-blogger-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 username">
                            <a href="">小小编辑1</a>
                            <div class="details">
                                <div class="d-item"><span>9999+</span> 篇文章</div>
                                <div class="d-item"><span>9999+</span> 次访问</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="l-blog-hot-article">
                <div class="l-blog-hot-article-header">
                    <span class="title">热门文章</span>
                    <span class="more"><a href="">更多</a></span>
                </div>
                <div class="l-blog-hot-article-body">
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1文章名称1文章名称1文章名称1文章名称1文章名称1文章名称1文章名称1文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row l-blog-hot-article-user">
                        <div class="layui-col-xs2">
                            <div class="photo">
                                <a href="">
                                    <img src="img/photo.jpg" width="100%" height="100%" class="layui-circle">
                                </a>
                            </div>
                        </div>
                        <div class="layui-col-xs10 article">
                            <a href="">文章名称1</a>
                            <div class="details">
                                <div class="d-item"><span></span> <a href="">谭江海</a> </div>
                                <div class="d-item item"><span>66.2K</span> 次访问</div>
                                <div class="d-item item"><i class="layui-icon layui-icon-praise"></i> <span>10.1K</span></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="g-footer">
    <hr>
    <div>Copyright ©2018 技术栈(jishuzhan.club), All Rights Reserved.</div>
    <div>渝ICP备13001123号-2</div>
</div>

<script src="${APP_PATH}/vendor/holder.min.js"></script>
<script src="${APP_PATH}/vendor/layui-v2.4.5/layui/layui.js"></script>
<script src="${APP_PATH}/js/common.js"></script>
<script src="${APP_PATH}/js/blog.js"></script>
</body>
</html>